<?php
class PartnerWidget extends CWidget
{	
	public function init()
	{
	}
	
	public function run()
	{
		$cri = new CDbCriteria;
		$cri->condition = 'visible = 1';
		$cri->order = 'sort ASC, id DESC';
		$model = Partner::model()->findAll($cri);

		$this->render('viewPartnerWidget',array('model'=>$model));	
	} 
}